package com.worthtech.billportal.bean;



/**
 * WtCreditMerInfoId entity. @author MyEclipse Persistence Tools
 */

public class WtCreditMerInfoId  implements java.io.Serializable {


    // Fields    

     private String mercode;
     private String termcode;


    // Constructors

    /** default constructor */
    public WtCreditMerInfoId() {
    }

    
    /** full constructor */
    public WtCreditMerInfoId(String mercode, String termcode) {
        this.mercode = mercode;
        this.termcode = termcode;
    }

   
    // Property accessors

    public String getMercode() {
        return this.mercode;
    }
    
    public void setMercode(String mercode) {
        this.mercode = mercode;
    }

    public String getTermcode() {
        return this.termcode;
    }
    
    public void setTermcode(String termcode) {
        this.termcode = termcode;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof WtCreditMerInfoId) ) return false;
		 WtCreditMerInfoId castOther = ( WtCreditMerInfoId ) other; 
         
		 return ( (this.getMercode()==castOther.getMercode()) || ( this.getMercode()!=null && castOther.getMercode()!=null && this.getMercode().equals(castOther.getMercode()) ) )
 && ( (this.getTermcode()==castOther.getTermcode()) || ( this.getTermcode()!=null && castOther.getTermcode()!=null && this.getTermcode().equals(castOther.getTermcode()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getMercode() == null ? 0 : this.getMercode().hashCode() );
         result = 37 * result + ( getTermcode() == null ? 0 : this.getTermcode().hashCode() );
         return result;
   }   





}